﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;

namespace CFSystem.JXC
{
    /**/
    /// <summary>實現SqlConnection對象的具體工作類</summary> 
    public class SqlConnection : ConnectionFactory
    {
        public SqlConnection() : this(null) { }
        public SqlConnection(string connString) : base(connString) { }

        public override IDbConnection GetConnection()
        {
            if (connectionString != null)
            {
                return new System.Data.SqlClient.SqlConnection(connectionString);
            }
            else
            {
                return new System.Data.SqlClient.SqlConnection();
            }
        }
    }
}
